import java.util.Scanner;

abstract class ADetect {
    public abstract boolean detect(double sample);
}

class TPDetect extends ADetect{
    final double MINTP = 36.0; // 正常体温下限
    final double MAXTP = 37.5; // 正常体温上限

    @Override
    public boolean detect(double tp){
        boolean r = false;
        if(tp >= MINTP && tp <= MAXTP) {
            r = true; // 体温正常
        }
        return r;
    }
}

public class TC2 {
    public static void main(String[] args) {
        TPDetect tpd = new TPDetect(); // (3)
        Scanner in = new Scanner(System.in);
        System.out.print("请输入体温:");
        double temp = in.nextDouble();
        boolean b = tpd.detect(temp); // (4)
        if (b == true)
            System.out.print("体温正常");
        else
            System.out.print("体温异常");
    }
}
